package com.bee.health.util;

import android.graphics.Canvas;

import com.baidu.mapapi.map.MapView;
import com.baidu.mapapi.map.Overlay;
/**
 * 这个是专门在地图上绘制点的
 * @author bee
 *
 */
public class RunLineOverlay extends Overlay
{
	public void draw(Canvas canvas, MapView mapView, boolean shadow) {
		 /*Projection projection = mapView.getProjection();
		
		                  Point p1 = new Point();
		
		                      Point p2 = new Point();
		
		                         Point p3 = new Point();
		
		                       // 经度转像素
		
		                     projection.toPixels(gpoint1, p1);
		
		                 projection.toPixels(gpoint2, p2);
		
		                       projection.toPixels(gpoint3, p3);
		
		          
		
		                      //第一个画笔 画圆
		                  Paint fillPaint = new Paint();
	                 fillPaint.setColor(Color.GREEN);
		                      fillPaint.setAntiAlias(true);
	                       fillPaint.setStyle(Style.FILL);
		                    // 将图画到上层
		                         canvas.drawCircle(p1.x, p1.y, 5.0f, fillPaint);
		                       canvas.drawCircle(p2.x, p2.y, 5.0f, fillPaint);
		                    canvas.drawCircle(p3.x, p3.y, 5.0f, fillPaint);
	                       //第二个画笔 画线
		                       Paint paint = new Paint();
		                      paint.setColor(Color.BLUE);
		                         paint.setDither(true);
		                         paint.setStyle(Paint.Style.STROKE);
		                       paint.setStrokeJoin(Paint.Join.ROUND);
		                  paint.setStrokeCap(Paint.Cap.ROUND);
		                        paint.setStrokeWidth(8);
		
		                          //连接
		                         Path path = new Path();
		                    path.moveTo(p1.x, p1.y);
		                      path.lineTo(p2.x, p2.y);
		                       path.lineTo(p3.x, p3.y);
		                      //画出路径
		                         canvas.drawPath(path, paint);*/
	}
	
}
